package cn.bytets.rpc.api.exchange;

import cn.bytets.rpc.common.URL;

import java.util.concurrent.CompletableFuture;

/**
 * 主要是管理链接客户端池
 */
public interface ExchangeClient {

    public CompletableFuture<Object> request(Object message, URL url);

    public CompletableFuture<Object> request(Object message,int timeout,URL url);

    void reconnect(URL url);
}
